package com.cskaoyan.javase.oop1._14block._3static._1usecase;
/**
 * 静态代码块因为它随着类加载的执行而执行
 * 所以也经常用来判断某个类是否进行类加载
 *
 * @since 16:18
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    static {
        System.out.println("Demo类类加载!");
    }
    public static void main(String[] args) {
        new A();
    }
}
class A{
    static {
        System.out.println("A类类加载!");
    }
}